
#ifndef SETUPORIGINOPERA_H
#define SETUPORIGINOPERA_H

#include "../Target.h"
#include "Opera.h"

class SetupOriginOpera : public Opera
{
public:
	SetupOriginOpera(Target* target);
	~SetupOriginOpera();

	virtual bool redo();
	virtual bool undo();

	void setOrigin(const BVector& origin);

private:
	BHolder<Target>		_target;
	BHolder<BGroup>		_group;
	BHolder<BNode>		_node;
	BHolder<BShape>		_shape;
	BVector				_oldOrigin;
	BVector				_newOrigin;
};

#endif
